﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013F7 RID: 5111
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyGamePlayStartCsReq : IMessage<TrainPartyGamePlayStartCsReq>, IMessage, IEquatable<TrainPartyGamePlayStartCsReq>, IDeepCloneable<TrainPartyGamePlayStartCsReq>, IBufferMessage
	{
		// Token: 0x17004079 RID: 16505
		// (get) Token: 0x0600E4EF RID: 58607 RVA: 0x00264529 File Offset: 0x00262729
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyGamePlayStartCsReq> Parser
		{
			get
			{
				return TrainPartyGamePlayStartCsReq._parser;
			}
		}

		// Token: 0x1700407A RID: 16506
		// (get) Token: 0x0600E4F0 RID: 58608 RVA: 0x00264530 File Offset: 0x00262730
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyGamePlayStartCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700407B RID: 16507
		// (get) Token: 0x0600E4F1 RID: 58609 RVA: 0x00264542 File Offset: 0x00262742
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyGamePlayStartCsReq.Descriptor;
			}
		}

		// Token: 0x0600E4F2 RID: 58610 RVA: 0x00264549 File Offset: 0x00262749
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGamePlayStartCsReq()
		{
		}

		// Token: 0x0600E4F3 RID: 58611 RVA: 0x0026455C File Offset: 0x0026275C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGamePlayStartCsReq(TrainPartyGamePlayStartCsReq other) : this()
		{
			this.passengerList_ = other.passengerList_.Clone();
			this.teamId_ = other.teamId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E4F4 RID: 58612 RVA: 0x00264592 File Offset: 0x00262792
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGamePlayStartCsReq Clone()
		{
			return new TrainPartyGamePlayStartCsReq(this);
		}

		// Token: 0x1700407C RID: 16508
		// (get) Token: 0x0600E4F5 RID: 58613 RVA: 0x0026459A File Offset: 0x0026279A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> PassengerList
		{
			get
			{
				return this.passengerList_;
			}
		}

		// Token: 0x1700407D RID: 16509
		// (get) Token: 0x0600E4F6 RID: 58614 RVA: 0x002645A2 File Offset: 0x002627A2
		// (set) Token: 0x0600E4F7 RID: 58615 RVA: 0x002645AA File Offset: 0x002627AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TeamId
		{
			get
			{
				return this.teamId_;
			}
			set
			{
				this.teamId_ = value;
			}
		}

		// Token: 0x0600E4F8 RID: 58616 RVA: 0x002645B3 File Offset: 0x002627B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyGamePlayStartCsReq);
		}

		// Token: 0x0600E4F9 RID: 58617 RVA: 0x002645C4 File Offset: 0x002627C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyGamePlayStartCsReq other)
		{
			return other != null && (other == this || (this.passengerList_.Equals(other.passengerList_) && this.TeamId == other.TeamId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E4FA RID: 58618 RVA: 0x00264614 File Offset: 0x00262814
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.passengerList_.GetHashCode();
			if (this.TeamId != 0U)
			{
				num ^= this.TeamId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E4FB RID: 58619 RVA: 0x00264661 File Offset: 0x00262861
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E4FC RID: 58620 RVA: 0x00264669 File Offset: 0x00262869
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E4FD RID: 58621 RVA: 0x00264674 File Offset: 0x00262874
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.passengerList_.WriteTo(ref output, TrainPartyGamePlayStartCsReq._repeated_passengerList_codec);
			if (this.TeamId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.TeamId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E4FE RID: 58622 RVA: 0x002646C4 File Offset: 0x002628C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.passengerList_.CalculateSize(TrainPartyGamePlayStartCsReq._repeated_passengerList_codec);
			if (this.TeamId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TeamId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E4FF RID: 58623 RVA: 0x00264718 File Offset: 0x00262918
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyGamePlayStartCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.passengerList_.Add(other.passengerList_);
			if (other.TeamId != 0U)
			{
				this.TeamId = other.TeamId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E500 RID: 58624 RVA: 0x00264765 File Offset: 0x00262965
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E501 RID: 58625 RVA: 0x00264770 File Offset: 0x00262970
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U && num != 82U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.TeamId = input.ReadUInt32();
					}
				}
				else
				{
					this.passengerList_.AddEntriesFrom(ref input, TrainPartyGamePlayStartCsReq._repeated_passengerList_codec);
				}
			}
		}

		// Token: 0x04005A9D RID: 23197
		private static readonly MessageParser<TrainPartyGamePlayStartCsReq> _parser = new MessageParser<TrainPartyGamePlayStartCsReq>(() => new TrainPartyGamePlayStartCsReq());

		// Token: 0x04005A9E RID: 23198
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005A9F RID: 23199
		public const int PassengerListFieldNumber = 10;

		// Token: 0x04005AA0 RID: 23200
		private static readonly FieldCodec<uint> _repeated_passengerList_codec = FieldCodec.ForUInt32(82U);

		// Token: 0x04005AA1 RID: 23201
		private readonly RepeatedField<uint> passengerList_ = new RepeatedField<uint>();

		// Token: 0x04005AA2 RID: 23202
		public const int TeamIdFieldNumber = 12;

		// Token: 0x04005AA3 RID: 23203
		private uint teamId_;
	}
}
